package com.syni.mdd.yhd.common.all.dto.requestDto.business;

import com.syni.mdd.yhd.common.all.dto.requestDto.BaseReDto;
import com.syni.mdd.yhd.common.all.validationGroup.GroupFind;
import com.syni.mdd.yhd.common.all.validationGroup.GroupInsert;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @className BusinessCouponReDto
 * @description TOO
 * @Author hwq
 * @DATE 2019/9/23
 * @VERSION 1.0
 **/
@Data
public class BusinessCouponReDto extends BaseReDto {
    @NotNull(groups = {GroupInsert.class,GroupFind.class})
    private Integer businessId;

    @NotNull(groups = {GroupInsert.class})
    private Integer couponType;

    @Size(max = 50,groups = {GroupInsert.class})
    private String couponName;

    @NotNull(groups = {GroupInsert.class})
    private String couponContent;

    @NotNull(groups = {GroupInsert.class})
    private String sendStartTime;

    @NotNull(groups = {GroupInsert.class})
    private String sendEndTime;

    @NotNull(groups = {GroupInsert.class})
    private Integer sendNum;

    @NotNull(groups = {GroupInsert.class})
    private Integer limitOnceUse;

    @NotNull(groups = {GroupInsert.class})
    private String startTime;

    @NotNull(groups = {GroupInsert.class})
    private String endTime;

    @NotNull(groups = {GroupInsert.class})
    private Integer isEnjoyOtherBen;

    private Integer status;

    @Size(max = 100,groups = {GroupInsert.class})
    private String otherRemark;

    private Integer receCouponId;

}
